Don't #define _LIBCPP_HAS_NO_MONOTONIC_CLOCK on __APPLE__ This fixes PR20839, which was a bug in r216949. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@216975 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/__config b/include/__config index 2eb9e55..6347b51 100644 --- a/include/__config +++ b/include/__config
@@ -650,8 +650,9 @@ # define _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 1 #endif -#if (!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \ - (!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0) +#if !defined(__APPLE__) && \ + ((!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \ + (!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0)) #define _LIBCPP_HAS_NO_MONOTONIC_CLOCK #endif